package com.atguigu.jxc.service;

import com.atguigu.jxc.entity.*;

import java.util.List;
import java.util.Map;

public interface PurchaseService {
    List<Supplier> supplierComboboxList(String q);

    void savePurchaseListGoods(PurchaseList purchaseList, List<PurchaseListGoods> list);

    void saveReturnListGoods(ReturnList returnList, List<ReturnListGoods> list);

    Map<String, Object> purchaseListGoodsList(String purchaseNumber, Integer supplierId, Integer state, String sTime, String eTime);

    Map<String, Object> purchaseListGoodsGetGoodss(Integer purchaseListId);

    void delPurchaseListGoods(Integer purchaseListId);

    Map<String, Object> returnListGoodsList(String returnNumber, Integer supplierId, Integer state, String sTime, String eTime);

    Map<String, Object> returnListGoodsGetGoodss(Integer returnListId);

    void delReturnListGoods(Integer returnListId);

    void updateState(Integer purchaseListId);

    List<Map> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
}
